from MiniBotControlLib import MiniBotControlLib

#
#	 获取PWM
#


mlib = MiniBotControlLib()
r = mlib.Connect("192.168.1.129",8899)
if(r > 0):
 print("连接成功")
else:
 print("连接失败")

mlib.SetMotorMode(25,2)
mlib.SetPWM(25,30)
r =mlib.GetPWM(25)
print("rs="+str(r))


